package com.summer.urlmapping.controller;

import java.util.Arrays;

import org.apache.commons.logging.Log;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.summer.core.annotations.Logger;
import com.summer.core.annotations.ScopeType;
import com.summer.core.controller.EntityQuery;
import com.summer.urlmapping.model.MetaMapping;

@Component
@Scope(ScopeType.VIEW)
public class MetaMappingList  extends EntityQuery<MetaMapping>{
	@Logger
	static Log log;

	public MetaMappingList() {
		final String[] RESTRICTIONS = { "id like #{metaMappingList.example.id}",
				"title like #{metaMappingList.example.title}",
				"viewId like #{metaMappingList.example.viewId}" };
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
	}
}
